package org.jeecg.modules.paycenter.channel.zxbank.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "stream")
public class BasePacket {
    @XmlElement
    private String action;

    @XmlElement
    private String userName;

    @XmlElement
    private String clientID;

    @XmlElement
    private String ID;

    @XmlElement
    private String payAccountNo;

    @XmlElement
    private Integer totalNumber;

    @XmlElement
    private BigDecimal totalAmount;

    @XmlElement(name = "abstract")
    private String Abstract;

    @XmlElement
    private String chkNum;

    //支付联行号,查询联行行号
//    @XmlElement
//    private String tgfi;

    //region 电子回单

    //查询类型char(1),  1：T+0；2：T+1
    @XmlElement
    private String qryType;
    @XmlElement
    private String accNo;
    //回单类型char(1)，0：全部；1：转账类；2：利息类；3：收费类；4：电子缴税；5：网银结售汇；6：现金管理转账
    @XmlElement
    private String billType;
    @XmlElement
    private BigDecimal minAmt;
    @XmlElement
    private BigDecimal maxAmt;
    @XmlElement
    private String startDate;
    @XmlElement
    private String endDate;
    @XmlElement
    private Integer pageSize;
    @XmlElement
    private Integer startNo;

    @XmlElement
    private String bankId;
    @XmlElement
    private String isCurrDay;

    //endregion

    @XmlElement
    private UserDataList list;

    public BasePacket() {

    }
}
